package com.xiaoyy.app.api.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标签字典库
 * </p>
 *
 * @author chenzh
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DICT_LABEL")
@ApiModel(value="DictLabel对象", description="标签字典库")
public class DictLabel extends Model<DictLabel> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签编码")
    @TableId(value = "LABEL_CODE", type = IdType.INPUT)
    private String labelCode;

    @ApiModelProperty(value = "标签类型：person 人员标签 org 组织标签")
    @TableField("LABEL_TYPE")
    private String labelType;

    @ApiModelProperty(value = "标签名称")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "父标签编码")
    @TableField("PARENT_CODE")
    private String parentCode;

    @ApiModelProperty(value = "描述")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "有效状态 0无效 1有效")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_NAME")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_NAME")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField("DEL")
    private String del;


    @Override
    protected Serializable pkVal() {
        return this.labelCode;
    }

}
